﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using DataAccessLayer.DAL;

namespace BussinessLayer
{
    class BusinessLayer
    {
        UserDAL userDal = new UserDAL();

        public bool CheckValidLogin(string userName, string password)
        {
            var userNameLength = userName.Length;
            var passwordLength = password.Length;
            var isValidLogin = (userNameLength == 0 || passwordLength == 0) && (userDal.CheckValidUser(userName, password));
            return isValidLogin;
        }
    }
}
